<html> <head> <title>Module: ..\controls\djlistbox</title> </head> <body bgcolor="#ffffff">
<p><i><a href="index.html">Table of Contents</a></i></p>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
  <tr>
    <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Module: ..\controls\djlistbox</font> </th>
    <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">djlistbox.py</font> </th>
  </tr>
  <tr>
  <td>
  
  <table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> methods&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#__init__">__init__</a><br><a href="#add_item">add_item</a><br><a href="#clear">clear</a><br><a href="#delete_item">delete_item</a><br><a href="#deselect">deselect</a><br><a href="#get_selected_items">get_selected_items</a><br><a href="#get_selection">get_selection</a><br><a href="#insert_item">insert_item</a><br><a href="#scrollto_end">scrollto_end</a><br><a href="#scrollto_start">scrollto_start</a><br><a href="#set_selection">set_selection</a><br><a href="#style_item">style_item</a><br><a href="#style_item_get">style_item_get</a><br><a href="#_lookupCustomProperties">_lookupCustomProperties</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>__init__( parent, scrollbar=False, **options)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="add_item"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">add_item&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>add_item( entry, bEnd=False)</pre>
			Append item to the current location, or to the end if bEnd is True.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="clear"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">clear&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>clear()</pre>
			Clear all items.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="delete_item"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">delete_item&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>delete_item( index)</pre>
			Delete item at the given index.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="deselect"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">deselect&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>deselect()</pre>
			Deselect all items.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selected_items"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selected_items&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selected_items()</pre>
			Returns list of strings, which represent the selected items. Returns empty list if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_selection"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_selection&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>get_selection()</pre>
			Returns list of integers, the indices of selected items. Returns empty list if there is no selection.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="insert_item"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">insert_item&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>insert_item( index, entry)</pre>
			Insert item at the given index.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_end"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_end&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_end()</pre>
			Scroll to end.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollto_start"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollto_start&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>scrollto_start()</pre>
			Scroll to start.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="set_selection"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">set_selection&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>set_selection(index)</pre>
			Select the item at the given index
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="style_item"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">style_item&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>style_item( index, **options)</pre>
			Style one item of the list, at the given index. background='blue', foreground='#0000ff', font, and so on.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="style_item_get"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">style_item_get&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>style_item_get( index, option)</pre>
			Retrieve style information for one item of the list. background='blue', foreground='#0000ff', font, and so on.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_lookupCustomProperties"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_lookupCustomProperties&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_lookupCustomProperties( bSet, strAttribute, value=None)</pre>
	
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> properties&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#bgcolor">bgcolor</a><br><a href="#borderstyle">borderstyle</a><br><a href="#borderwidth">borderwidth</a><br><a href="#color">color</a><br><a href="#enabled">enabled</a><br><a href="#font">font</a><br><a href="#height">height</a><br><a href="#items">items</a><br><a href="#multiple">multiple</a><br><a href="#ondoubleclick">ondoubleclick</a><br><a href="#scrollbar">scrollbar</a><br><a href="#selectionbgcolor">selectionbgcolor</a><br><a href="#selectioncolor">selectioncolor</a><br><a href="#width">width</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="bgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">bgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color of the listbox. RGB triplet, such as (255,0,0) for pure red.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderstyle"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderstyle&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Border style. One of 'sunken','raised','groove','ridge','flat'. Default is 'sunken'.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="borderwidth"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">borderwidth&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	An integer, width of border in pixels.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="color"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">color&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Foreground color of the listbox. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="enabled"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">enabled&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	If False, the listbox is grayed out.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="font"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">font&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set font of items in the listbox. Standard tkinter font format, such as ('Times New Roman', 12, 'normal')
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="height"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">height&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set height of listbox, how many items are displayed. Defaults to 10.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="items"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">items&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	List of strings. Each string will be an item in the listbox.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="multiple"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">multiple&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	If True, users can use Shift or Control to select ranges of items.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="ondoubleclick"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">ondoubleclick&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set a callback for when an item is double-clicked. Callback function should take one argument, the selected items.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="scrollbar"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">scrollbar&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	True or false. Display a vertical scrollbar. Can only be set when the control is first created, in the constructor.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="selectionbgcolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">selectionbgcolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Background color when an item is selected. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="selectioncolor"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">selectioncolor&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Color of text when an item is selected. RGB triplet.
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="width"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">width&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre></pre>
	Set width of listbox, where one unit is the width of a char. Defaults to 20.
        </font></td></tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> functions&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">&nbsp;</font> </th>
    </tr>
    <tr>
      <td><a href="#_boolToSelectmode">_boolToSelectmode</a><br><a href="#_boolToState">_boolToState</a><br><a href="#_selectmodeToBool">_selectmodeToBool</a><br><a href="#_stateToBool">_stateToBool</a><br></td>
      </tr>
<tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolToSelectmode"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolToSelectmode&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolToSelectmode(b)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_boolToState"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_boolToState&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_boolToState(b)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_selectmodeToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_selectmodeToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_selectmodeToBool(state)</pre>
	
        </font></td></tr><tr>
      <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="_stateToBool"></a>&nbsp; </font> </th>
      <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">_stateToBool&nbsp;</font> </th>
    </tr>
    <tr>
      <td><font color="#000088">
         <pre>_stateToBool(state)</pre>
	
        </font></td></tr></table>  </td>   </tr>
  
</table>
<hr>
<p><i><a href="index.html">Table of Contents</a></i></p>
<font size="-2"><i>This document was automatically generated on 2008-02-29 23:29:05.511000 by something that looks like HappyDoc but isn't really.</font>
</body> </html> 